package com.yhcnet.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Share {
    @TableId(type = IdType.AUTO)
    int sid;
    int uid;
    int fid;
    String code;
    String date;

    @Version //乐观锁版本号
    private int version;

    @TableLogic //逻辑删除
    private int deleted;
}
